<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <title><spring:message code="label.complaints"/></title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/bootstrap/css/bootstrap.min.css"/>"/>
    <script src="<c:url value='/resources/bootstrap/js/bootstrap.min.js'/>"></script>
    <script src="<c:url value='/resources/scripts/jquery.min.js'/>"></script>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-body">
        <c:if test="${!empty complaints}">
            <div class="row">
                <div class="form-group col-lg-4">
                    <label class="control-label"><spring:message
                            code="label.publishDate"/></label>
                </div>
                <div class="form-group col-lg-4">
                    <label class="control-label"><spring:message
                            code="label.subject"/></label>
                </div>
                <div class="form-group col-lg-2">
                    <label class="control-label"><spring:message
                            code="label.description"/></label>
                </div>
            </div>
                <c:forEach items="${complaints}" var="complaint">
                    <div class="row">
                        <div class="col-lg-4">
                            <label class="control-label">${complaint.publishDate}</label>
                        </div>
                        <div class="col-lg-4">
                            <label class="control-label">${complaint.subject}</label>
                        </div>
                        <div class="col-lg-2">
                            <label class="control-label">${complaint.description}</label>
                        </div>
                    </div>
                </c:forEach>
        </c:if>
    </div>
</div>
</body>
</html>
